﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DispatchAssist.Model
{
    /// <summary>
    /// SMSAlert
    /// </summary>
    public class SMSAlert
    {

        /// <summary>
        /// SMSAlert 构造函数
        /// </summary>
        public SMSAlert()
        { }


        /// <summary>
        /// SMSAlert OR映射构造函数
        /// </summary>
        public SMSAlert(System.Data.IDataReader dr)
        {
            this.SMSAlertID = (Guid)dr["SMSAlertID"];
            this.MeteoMsgID = (Guid)dr["MeteoMsgID"];
            this.SeatID = (Guid)dr["SeatID"];
            this.GroupCode = Convert.ToString(dr["GroupCode"]);
            this.RelationFlights = Convert.ToString(dr["RelationFlights"]);
            this.FlightCount = Convert.ToInt32(dr["FlightCount"]);
            this.AlertActionFlag = Convert.ToInt32(dr["AlertActionFlag"]);
            this.PerformActionFlag = Convert.ToInt32(dr["PerformActionFlag"]);
            this.LastModifyTime = Convert.ToDateTime(dr["LastModifyTime"]);
            this.DeleteFlag = Convert.ToBoolean(dr["DeleteFlag"]);
        }


        /// <summary>
        /// 
        /// </summary>
        public Guid SMSAlertID { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public Guid MeteoMsgID { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public Guid SeatID { get; set; }

        /// <summary>
        /// 航空公司代码
        /// </summary>
        public string GroupCode { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public string RelationFlights { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public int FlightCount { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public int AlertActionFlag { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public int PerformActionFlag { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public DateTime LastModifyTime { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public bool DeleteFlag { get; set; }

        public override string ToString()
        {
            return string.Format("[MeteoMsgID：{0}]", this.MeteoMsgID.ToString());
        }

    }
}
